﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace POVRay {
    public class LightSource {
        public Vector3 Location { get; set; }
        public Color Color { get; set; }
        public LightSourcePhotons Photons { get; set; }

        //TODO: complete

        public LightSource(Vector3 location, Color color) {
            Location = location;
            Color = color;
        }

        public String ToString(int level) {
            StringBuilder sb = new StringBuilder();
            sb.Append("light_source { ");

            sb.Append(Scene.Indentation(level + 1) + Location + ", ");
            sb.Append(Scene.Indentation(level + 1) + Color + " ");
            if (Photons != null) {
                sb.Append(Scene.Indentation(level + 1) + Photons.ToString(level + 1));
            }

            sb.Append(Scene.Indentation(level) + "}");
            return sb.ToString();
        }
    }
}
